<!--<script type="text/javascript" src="../js/validator.js"></script>-->
<!-- 内容 -->
<div style="margin:10px"></div>
<div class="content">
    <form id="form" class="easyui-form" method="POST" data-options="novalidate:true">
        <input type='hidden' name="id" id="id"/>
        <table cellpadding="5" border="0">
            <tr>
                <td width="20%" align="right">机器序列号：</td>
                <td width="30%"><input class="easyui-textbox" name="serverCode" data-options="required:true"/></td>
                <td width="23%" align="right">状态：</td>
                <td>
                    <input class="easyui-combobox"
                           name="status"
                           editable="false"
                           value="C2"
                           data-options="required:true,
                           url:'/rest/admin/server_statuses',
                           method:'get',
                           valueField:'value',
                           textField:'text',
                           panelHeight:'auto'"/>
                </td>
            </tr>
            <tr>
                <td align="right">IDC标签：</td>
                <td><input class="easyui-textbox" name="tagIdc" data-options="required:true"/></td>
                <td align="right">金蝶标签：</td>
                <td><input class="easyui-textbox" name="tagKingdee" data-options="required:true"/></td>
            </tr>
            <tr>
                <td align="right">内网IP：</td>
                <td><input class="easyui-textbox" name="ipInner" data-options="required:true"/></td>
                <td align="right">外网IP：</td>
                <td><input class="easyui-textbox" name="ipOutter" data-options="required:true"/></td>
            </tr>
            <tr>
                <td align="right">所属产品：</td>
                <td><input class="easyui-textbox" name="product" data-options="required:true"/></td>
                <td align="right">所属模块：</td>
                <td><input class="easyui-textbox" name="module" data-options="required:true"/></td>
            </tr>
            <tr>
                <td align="right">所属部门：</td>
                <td><input class="easyui-textbox" name="department" data-options="required:true"/></td>
                <td align="right">所在机房：</td>
                <td><input class="easyui-textbox" name="site" data-options="required:true"/></td>
            </tr>
            <tr>
                <td align="right">机柜编码：</td>
                <td><input class="easyui-textbox" name="cabinetsCode" data-options="required:true"/></td>
                <td align="right">机柜位置：</td>
                <td><input class="easyui-textbox" name="cabinetsPos" data-options="required:true"/></td>
            </tr>
            <tr>
                <td align="right">入库时间：</td>
                <td><input class="easyui-datebox" name="timeStore" data-options="required:true" editable="false"/></td>
                <td align="right">保修期：</td>
                <td><input class="easyui-datebox" name="warranty" data-options="required:true" editable="false"/></td>
            </tr>
            <tr>
                <td align="right">维护人员：</td>
                <td><input class="easyui-textbox" name="operator" data-options="required:true"/></td>
                <td align="right">备份人员：</td>
                <td><input class="easyui-textbox" name="backupOperator" data-options="required:true"/></td>
            </tr>
            <tr>
                <td align="right">是否虚拟机：</td>
                <td><!--value=false-->
                    <input class="easyui-combobox"
                           name="virtual"
                           editable="false"
                           value=false
                           data-options="required:true,
                           data: [{value: true,text: '是'},{value: false,text: '否'}],
                           valueField:'value',
                           textField:'text',
                           panelHeight:'auto'"/>
                </td>
                <td align="right">所在母机：</td>
                <td><input class="easyui-textbox" name="virtualHostId" data-options="required:false"/></td>
            </tr>
            <tr>
                <td align="right">机器型号：</td>
                <td><input class="easyui-textbox" name="hardwareType" data-options="required:true"/></td>
                <td align="right">硬件说明：</td>
                <td><input class="easyui-textbox" name="hardwareManual" data-options="required:true"/></td>
            </tr>
            <tr>
                <td align="right">OS说明：</td>
                <td><input class="easyui-textbox" name="osVersion" data-options="required:true"/></td>
                <td align="right">服务级别：</td>
                <td><input class="easyui-textbox" name="level" data-options="required:true"/></td>
            </tr>
            <tr>
                <td align="right">上架时间：</td>
                <td><input class="easyui-datebox" name="timeRack" data-options="required:true" editable="false"/></td>
                <td align="right">备注：</td>
                <td><input class="easyui-textbox" name="remark" data-options="required:true"/></td>
            </tr>
        </table>
    </form>
</div>

<!-- 弹出框按钮 -->
<div class="windowButton" style="padding:10px">
    <a id="save" class="easyui-linkbutton my-dialog-button" plain="true" icon="icon-save" onclick="_submit()"
       href="javascript:void(0)">保存</a>
    <a id="cancel" class="easyui-linkbutton my-dialog-button" plain="true" icon="icon-cancel"
       href="javascript:void(0)">取消</a>
</div>

<script>
    // $('#language').combobox('reload', 'combobox_data1.json')
    $(function () {
        $("#cancel").on("click", function () {
            $childwin().window("close");
        });
    })

    _get();

</script>